package request

import (
	"github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
	"github.com/flipped-aurora/gin-vue-admin/server/model/system"
)

type SysDictionaryDetailSearch struct {
	system.SysDictionaryDetail
	request.PageInfo
	IsTree bool `json:"isTree" form:"isTree"` // 是否返回树形结构
}

// 级联查询请求
type SysDictionaryDetailTreeRequest struct {
	SysDictionaryID uint  `json:"sysDictionaryID" form:"sysDictionaryID"` // 字典ID
	ParentID        *uint `json:"parentID" form:"parentID"`               // 父级ID，为空时查询顶级
}
